import { CSSProperties, FC } from "react"
type PropsType = {
    title: string;
    desc?: string;
}
const QuestionInfo:FC<PropsType> = (props: PropsType) => {
    const {title, desc} = props;
    const style: CSSProperties = {};
    return <div style={{textAlign: 'center'}}>
        <h1>{title}</h1>
        <p>{desc}</p>
        </div>
    
   
}
export default QuestionInfo;